//
//  YSNavigationAnimator.h
//  YouSheng
//
//  Created by aaa on 16/8/18.
//  Copyright © 2016年 FanShuHan. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSInteger, YSNavigationAnimationType) {
    YSNavigationAnimationTypeNormal,
    YSNavigationAnimationTypeCross,
};

@class YSNavigationAnimator;

@protocol YSNavigationAnimatorDelegate <NSObject>

- (void)animationWillStart:(YSNavigationAnimator *)animator;

- (void)animationDidEnd:(YSNavigationAnimator *)animator;

@end


@interface YSNavigationAnimator : NSObject <UIViewControllerAnimatedTransitioning>

@property (nonatomic,weak)   UINavigationController *navigationController;

@property (nonatomic,assign) UINavigationControllerOperation currentOpearation;

@property (nonatomic,assign) YSNavigationAnimationType animationType;

@property (nonatomic,weak) id<YSNavigationAnimatorDelegate> delegate;

- (instancetype)initWithNavigationController:(UINavigationController *)navigationController;

@end
